{
 "metadata": {
  "signature": "sha256:74e5b807ca70ad0f283f780b03b322532b79ce274292b2b3dc44c1568d6888a9"
 },
 "nbformat": 3,
 "nbformat_minor": 0,
 "worksheets": [
  {
   "cells": [
    {
     "cell_type": "markdown",
     "metadata": {},
     "source": [
      "Matplotlib: shaded regions\n",
      "======================================================================\n",
      "\n",
      "Use the fill function to make shaded regions of any color tint. Here is\n",
      "an example."
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "from pylab import *\n",
      "\n",
      "x = arange(10)\n",
      "y = x\n",
      "\n",
      "# Plot junk and then a filled region\n",
      "plot(x, y)\n",
      "\n",
      "# Make a blue box that is somewhat see-through\n",
      "# and has a red border. \n",
      "# WARNING: alpha doesn't work in postscript output.... \n",
      "fill([3,4,4,3], [2,2,4,4], 'b', alpha=0.2, edgecolor='r')"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "metadata": {},
       "output_type": "pyout",
       "prompt_number": 1,
       "text": [
        "[<matplotlib.patches.Polygon at 0x7f7a19aac890>]"
       ]
      },
      {
       "metadata": {},
       "output_type": "display_data",
       "png": "iVBORw0KGgoAAAANSUhEUgAAAV0AAAEACAYAAAAQmKWeAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAG2FJREFUeJzt3XuU1PV5x/H301xAtGmw2ZRmGxSUHjm4ohKCopWJShK8\n1QSrGDWAJJwgRCIRjCTiHrRqtNQqolhQ9ICXEJEUSJRVlylr5CLILqeoGNKAJCiCGFw3lCW7T//4\nroiEnZ1lZ+Y7l8/rHM75wfxm5uNRH579/r4Xc3dERCQ3/ip2ABGRUqKiKyKSQyq6IiI5pKIrIpJD\nKroiIjmkoisikkMquiIiOaSiKyKSQ59s6wYz+1vgO8Bm4O/c/d5shxIRKVbpdLo/Al5y958Bvc2s\nIsuZRESKVjpFtw/wfsv1G8Cg7MURESlubQ4vAK8SCm0d8KmD32Nm2rxBRKSFu1uq19PpdG8BeprZ\nBO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EQvIgcLaZXRcxy8e4++vAU8AxkaPsPuB6I1AeK8hBLgZ+ETuEmSUI\nRe5U4AdmdlLcRLzKR4X2U8ARrd3YkaL74cIJaGXhRCR5s1jDzM4HfuXuf8qzp89/BH4b68vd/QJ3\n/wYwGqh297tjZfnQQZ1/J8L/RDG9QBjuAOhKGMLLBye4+29ihyAU29+0DHPMAWJvIHsL0NPMJgBn\nA+tau7EjRTevFk6Y2ZeAMsIDrOjM7HLgAWCZmb1K5DFvM6s0s4fM7DzCXwTvxcyTh241s/lmdiUw\nz93r23xHFrl7FdDJzK4CTgfujJkHwMzKgd/HztFiHuGnpIuBzwLPxAzj7rtbHlQ/SuhyX2jtXi2O\nEBHJADP7PHAb8NNUPw2o6IqIdJCZHUN4TlLl7o0p71XRFRHJHS2ZFRHJIRVdEZEcUtEVEckhFV0R\nkRxS0RURySEVXRGRHPp/+vbY16UuYEwAAAAASUVORK5CYII=\n",
       "text": [
        "<matplotlib.figure.Figure at 0x7f7a19aaccd0>"
       ]
      }
     ],
     "prompt_number": 1
    }
   ],
   "metadata": {}
  }
 ]
}